﻿$().ready(function () {

    initializeDeleteHandler();
    initializeDatePicker();
    //initializeWindowPopup();

});

this.initializeWindowPopup = function(){
    $('.popup').popupWindow({ 
    height:630, 
    width:940, 
    centerScreen:true,
    top:50, 
    left:50 
    }); 
}
this.initializeDatePicker = function(){
  $('.dtePicker').datepicker();

}
this.initializeDeleteHandler = function () {
  var btnDelId;
    $("#dialog-delete").dialog({
        autoOpen: false,
        height: 170,

        closeOnEscape: false,
        resizable: false,
        buttons: {
           
            "Cancel": function () {
                $(this).dialog("close");
                return false;
            },
             "Ok": function () {
                $(this).dialog("close");
                __doPostBack( btnDelId , "Click");
                return true;
            }
        },
  
    });

//    $('.btnDelete').click(function () {
//        btnDelId = $(this).attr('name');
//        $("#dialog-delete").dialog("open");
//        return false;
//    });
}
